package com.ling.bean;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

public class User implements Serializable {
    private String id;

    private String nickname;

    @Pattern(regexp = "^1[0-9]{10}$", message = "你的手机号填写格式不正确，请重试！")
    private String tel;

    @Pattern(regexp = "^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*\\.[a-zA-Z0-9]{2,6}$", message = "你的邮箱格式不正确，请重试！")
    private String email;

    @Pattern(regexp = "^[a-zA-Z0-9]{8,16}$", message = "密码格式不正确，由8-16位字母或数字组成！")
    private String password;

    private String gender;

    private String headimgurl;

    private String slogan;

    private Integer followingusernum;

    private Integer fannum;

    private Integer jiyan;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl == null ? null : headimgurl.trim();
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan == null ? null : slogan.trim();
    }

    public Integer getFollowingusernum() {
        return followingusernum;
    }

    public void setFollowingusernum(Integer followingusernum) {
        this.followingusernum = followingusernum;
    }

    public Integer getFannum() {
        return fannum;
    }

    public void setFannum(Integer fannum) {
        this.fannum = fannum;
    }

    public Integer getJiyan() {
        return jiyan;
    }

    public void setJiyan(Integer jiyan) {
        this.jiyan = jiyan;
    }
}